package com.xnck.example.jertest.listener;

import javax.servlet.annotation.WebListener;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

/**
 * HttpSession监听器测试类
 */
//@WebListener
public class TestSessionListener implements HttpSessionListener {

    /**
     * 创建
     */
    @Override
    public void sessionCreated(HttpSessionEvent httpSessionEvent) {
        System.out.println("创建了一个Session");
    }

    /**
     * 销毁
     */
    @Override
    public void sessionDestroyed(HttpSessionEvent httpSessionEvent) {
        System.out.println("销毁了一个Session");
    }
}
